package net.realsee.domain.wcs.device.bo;

import lombok.Data;
import net.realsee.common.enums.wcs.plc.PlcDataTypeEnum;

import java.util.ArrayList;
import java.util.List;

/**
 * PLC tag树
 *
 * @author 孙正华
 * @since 2023/8/17 13:13
 */
@Data
public class PlcTagTreeNode {

    /**
     * 编码
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 数据类型
     */
    private PlcDataTypeEnum type;

    /**
     * 子节点
     */
    private List<PlcTagTreeNode> children;

    public PlcTagTreeNode(String code, String name, PlcDataTypeEnum type) {
        this.code = code;
        this.name = name;
        this.type = type;
        this.children = new ArrayList<>();
    }

}
